﻿using ST.Torch.WebApi.Core.Entities.System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ST.Torch.WebApi.Application.System.Dtos
{
    public class SYSUserDto
    {
        /// <summary>
        /// 账号
        /// </summary>
        [MaxLength(100)]
        public string Account { get; set; }
        /// <summary>
		/// 密码
		/// </summary>
		[MaxLength(100)]
        public string Password { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
		/// 图片
		/// </summary>
		[MaxLength(200)]
        public string Img { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public SexEnum Sex { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        [MaxLength(200)]
        public string Contact { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
    }
    public class SYSUserListDto : SYSUserDto
    {
        public Guid Id { get; set; }
        public DateTime? CreateTime { get; set; }
        public DateTime? UpdateTime { get; set; }

        public string TypeStr { get; set; }

        //---
    }
    public class SYSUserRoleDto
    {
        public Guid id { get; set; }
        public string title { get; set; }
        public bool @checked { get; set; }
       
    }
    public class SYSUserInfoDto
    {
        
        /// <summary>
        /// 角色
        /// </summary>
        public List<string> Roles { get; set; }
        /// <summary>
        /// 拥有的菜单Id
        /// </summary>
        public List<Guid> MenuIds { get; set; }
        /// <summary>
        /// 拥有的菜单Id
        /// </summary>
        public List<LayuiMenuDto> UIMenus { get; set; }
        /// <summary>
        /// 权限标识
        /// </summary>
        public List<string> PermissionIds { get; set; }



        //---
    }
}
